import request from '@/utils/request'

// 查询法律咨询最近浏览列表
export function listLegavisit(query) {
  return request({
    url: '/member/legavisit/list',
    method: 'get',
    params: query
  })
}

// 查询法律咨询最近浏览详细
export function getLegavisit(id) {
  return request({
    url: '/member/legavisit/' + id,
    method: 'get'
  })
}

// 新增法律咨询最近浏览
export function addLegavisit(data) {
  return request({
    url: '/member/legavisit',
    method: 'post',
    data: data
  })
}

// 修改法律咨询最近浏览
export function updateLegavisit(data) {
  return request({
    url: '/member/legavisit',
    method: 'put',
    data: data
  })
}

// 删除法律咨询最近浏览
export function delLegavisit(id) {
  return request({
    url: '/member/legavisit/' + id,
    method: 'delete'
  })
}

// 导出法律咨询最近浏览
export function exportLegavisit(query) {
  return request({
    url: '/member/legavisit/export',
    method: 'get',
    params: query
  })
}